<!DOCTYPE html>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>softphoneBar</title>
	<link rel=”icon” href=”/favicon.ico” mce_href=”/favicon.ico” type=”image/x-icon”>
	<link rel=”shortcut icon” href=”/favicon.ico” mce_href=”/favicon.ico” type=”image/x-icon”>
	<script type="text/javascript" src="hojo/hojo.js" djConfig="isDebug:false, parseOnLoad:false"></script>

	<script type="text/javascript">
		function logon() {
			var loginName = hojo.byId("icc.login.loginName").value;
			var password = hojo.byId("icc.login.password").value;
			var loginType = "Local"; //手机
			//var loginType = "sip"; //软电话
			//var loginType = "gateway"; //IP话机或者语音网关
			window.location.href = "./phoneBar/phonebar.html?loginName=" + loginName + "&password=" + password + "&loginType=" + loginType;
		}
		function agentlogin(loginName, password, loginType) {
			window.location.href = "./phoneBar/phonebar.html?loginName=" + loginName + "&password=" + password + "&loginType=" + loginType;
		}
		function onload() {
			if (typeof (jscallbackobj) != undefined) {
				try {
					jscallbackobj.docloaded();
				} catch (err) {
					//alert(err.message);
				}
			} else {
				console.info("errorcode:" + errorcode + ",desc:" + desc);
			}
		}
	</script>
</head>

<body onload="onload()">
	<div align="center">
		<table border=1 cellpadding="0" cellspacing="0">
			<tr>
				<td>用户名：</td>
				<td><input type="text" id="icc.login.loginName" value="" /></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td><input type="password" id="icc.login.password" value="" /></td>
			</tr>
			<tr>
				<td colspan="2" align="right">
					<a href="javascript:logon();">登录</a>
				</td>
			</tr>

		</table>
	</div>
</body>

</html>